
{% extends TEMPLATE_BASE %}

{% block content %}
  <h2 class="title">{{election.name}} &mdash; 批量上传选民 &mdash; 确认<span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">返回选举页</a>]</span></h2>

<p>
已成功上传选民文件，该文件的前几行为：
</p>

<table>
<tr><th>选民类型</th><th>选民登录id</th><th>邮件地址</th><th>名字</th></tr>
{% for v in voters %}
<tr><td>{{v.voter_type}}</td><td>{{v.voter_id}}</td><td>{{v.email}}</td><td>{{v.name}}</td></tr>
{% endfor %}
</table>

{% if problems %}
<p style="font-size: 1.5em;">
注意:<br />
{% for problem in problems %}
- {{problem}}<br />
{% endfor %}
</p>
<br />

<a href="{% url "election@voters@upload-cancel" election.uuid %}">上传其他文件</a>
</p>

{% else %}
<p></p>
<form method="post" action="" id="upload_form">
  是你所期望的吗?
  <input type="hidden" name="confirm_p" value="1" />
  <input type="submit" value="Yes, let's go" />
</form>

<a href="{% url "election@voters@upload-cancel" election.uuid %}">不，重新上传新的文件</a>

{% endif %}

{% endblock %}
